package nc.ui.hdysc.travelagency.command;

import nc.ui.pub.ButtonObject;
import nc.ui.trade.base.IBillOperate;
import nc.ui.trade.bocommand.IUserDefButtonCommand;
import nc.vo.trade.button.ButtonVO;

public class LastPageBtn implements IUserDefButtonCommand{
	
	private ButtonVO btn_vo ;
	
	public static final int btn_no = 102 ;
	
	nc.ui.hdysc.travelagency.ClientUI ui ;
	
	public LastPageBtn(nc.ui.hdysc.travelagency.ClientUI ui){
		this.ui = ui ;
	}

	public ButtonVO getButtonVO() {
		if(btn_vo == null){
			btn_vo = new ButtonVO() ;
			btn_vo.setBtnCode("ĩҳ") ;
			btn_vo.setBtnName("ĩҳ") ;
			btn_vo.setBtnChinaName("ĩҳ") ;
			btn_vo.setBtnNo(btn_no) ;
			btn_vo.setOperateStatus(new int[]{IBillOperate.OP_NOTEDIT}) ;
		}
		return btn_vo;
	}

	public void execute(ButtonObject bo) throws Exception {
		ui.currpage = ui.pagesize-1 ;
		
		ui.refreshPageData() ;	
	}

}
